import { DataSetProps } from 'choerodon-ui/pro/lib/data-set/DataSet';
import { FieldType } from 'choerodon-ui/pro/lib/data-set/enum';

export default (): DataSetProps => ({
  autoQuery: false,
  autoCreate: true,
  fields: [
    { name: 'name', type: FieldType.string, label: '姓名', required: true },
    { name: 'email', type: FieldType.email, label: '邮箱', required: true },
    { name: 'website', type: FieldType.string, label: '主页', required: true },
  ],
  transport: {
  },
});